<?php
header('Content-Type:text/html;charset=utf-8');
require('../../public/zscg.php');
require('../../public/local.php');
$id=$_POST['sid'];
$post=array('fid'=>$_POST['fid'],'title'=>$_POST['title'],'content'=>$_POST['content'],'biaoqian'=>$_POST['biaoqian'],'zhuangtai'=>$_POST['zhuangtai']);
// var_dump($_POST);
$res=update($con,'wenzhang',$id,$post);

if($res){
    echo "<script>alert('修改成功');window.location.href='/admin/wenzhang/index.php'</script>";
}else{
    echo "<script>alert('修改失败');window.location.href='/admin/wenzhang/update1.php'</script>";
}